Code to reconstruct leptonically decaying top quarks, and application to dileptonic top quark pair reconstruction