Implemented find and find_pred functions. 100% untested.