some simple implementation of advanced data structures