Added math util
Initial selection rectangle overlaping testing