A process for the preparation of guar derivatives