A Unified Tool For Adaptive Collocation Techniques Applied To Solving Optimal Control Problems