added single page code
sorting algorithms implemented but not tested