Method of filling and emptying the working chamber of the hydraulic cylinder and a hydraulic cylinder together with a control system and a hydraulic cylinder for performing