added FIRST function, added explanation of heap

sort algorithm in my own language