Merged everything C# into one single file

Also removed the main function dependency so that the pathfinding class
can be used from user's own main.