fixed closest_point and added another solution for run_length