Renamed data structures and switched from using Lists to Vectors
Added type signature to main