Changed the are_perpendicular and is_parallel method