add support for balance algorithm
Merge branch 'hw3'
finishing the balance method
Merge branch 'hw3'
fix phase in moveairline