Implementing momentum and begining with ramdom indexes. Not tested