create pattern recognition project
implement basic compareTo
add test for compareTo null