hexscatter optimized for memory and speed.