differential coding and parameter optimisation, also got quantisation matrix working