Motion-X GPS app for iPhone. It is not specific to biking, but works well, supports recording tracks and storing them. Also supports saving maps on the phone for "offline" mode if you go places without cell coverage. I use it all the time for hiking and biking.