What are the functions of the cancellous bone?