implemented reverse remove from ArrayList