Allow the use of --invert_hash to extract the latent factors generated in --lrq

Fix --lrq so that it doesn't segfault with --invert_hash, also added demo illustrating use of latent factors

The demo extracts the latent factors from the inverted hash file and (using R) creates a hierarchical clustering of the movies used in demo/movielens.