Added validation test to performance tests.
Currently fails.
Included bigger array sort test for heapsort.
Fixed kdtree length comparison.
Instead of lengthSquared use length.