Linear Quadratic Optimal control Implementations