Manually updated riccati.py to master and added new tests to test_riccati.py