Man jailed for dealing crack and heroin in Harrogate