Methods added

Added necessary methods for the extension to n-dimensions