Representations of quasi-Newton matrices and their use in limited memory methods