Adding recursive solution for flatten BT to LL