Added function declarations for gosper algorithms