Consolidated utility functions to one file. Added decision contour plotting fuction.