Fixed and Optimised

-Removed all warnings
-Fixed Trifid and Bifid
-Replaced while loops with for loops where necessary
-Used prefix operators (++i rather than i++)