moving same base funcitions in the subdirectory bitmanipulation