added two cases

add BitSwap 0 and 1 at odd and even pos
add maxProfitCaculator, it is O(n) complexity