improved heapsort, fixes, css, distance chart almost finalized