Some additions and tweaks

Added TIA/TEABinaryLocate
Optimized/Cleaned TPASortByHeatmap