bubble sort and restructured spec code

added rake task and moved everything to a correct places