Studies of multiple stellar systems – IV. The triple-lined spectroscopic system Gliese 644