Added rectangle code, but not timing code for APU

- Added a boatload of code for rectangle 1