Implemented getCornersOfShape() in util.js. Added unit tests for getCornersOfShape()