the cubing function assignment - Search