added WSS and BSS measures, also added a method for finding the midpoint
of the entire dataset, which might not be necessary, but I needed a way
to get it.