Fixed a small leak and added a vector2 function (scalar)