Fixed two new lines after make
First version of func 'partition'