removed the method with high time complexity and added complexity orders to existing methods