Implemented the basic operation data structures and added some test cases.