Added function to find shape agreement between two frames, if any.