Added functionalities to get a available classroom randomly ranther than
sequentially.

Also added functinality to check capacity of the class before scheduling
the course