Factory reset with memory wipe. There isn't much else you could do to ensure that all of your personal information is deleted, however you can fill up your memory with random photos after the first factory reset. Then choose to delete them, and factory reset it again to ensure none of your photos, possibly with geo tags, are unrecoverable.