perp function for rotating 90 degrees to the left.