parallelizing code and basic features extracting hw4