Search for available room

Function to get available rooms written and some debugging done to the
function to check whether a room is available for a range of dates.