add Fifteens algorithm and 2^n macro