Imported from https://github.com/AmoliR/rank1-svd-update