Adding function for generating perpendicular vecotors