Add pile_check_integrity() to ensure lists make sense
Add test that checks integrity of a list after item removal
Fix bug where prev links got messed up