Comparison of direct and indirect methods for minimum lap time optimal control problems